package com.ruoyi.settled.service.impl;

import com.ruoyi.settled.domain.GroupLeaderOrders;
import com.ruoyi.settled.mapper.GroupLeaderOrdersMapper;
import com.ruoyi.settled.service.IGroupLeaderOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 团长订单Service业务层处理
 * 
 * @author huangchen
 * @date 2025-01-10
 */
@Service
public class GroupLeaderOrdersServiceImpl implements IGroupLeaderOrdersService 
{
    @Autowired
    private GroupLeaderOrdersMapper groupLeaderOrdersMapper;

    /**
     * 查询团长订单
     * 
     * @param orderCode 团长订单主键
     * @return 团长订单
     */
    @Override
    public GroupLeaderOrders selectGroupLeaderOrdersByOrderCode(String orderCode)
    {
        return groupLeaderOrdersMapper.selectGroupLeaderOrdersByOrderCode(orderCode);
    }

    /**
     * 查询团长订单列表
     * 
     * @param groupLeaderOrders 团长订单
     * @return 团长订单
     */
    @Override
    public List<GroupLeaderOrders> selectGroupLeaderOrdersList(GroupLeaderOrders groupLeaderOrders)
    {
        return groupLeaderOrdersMapper.selectGroupLeaderOrdersList(groupLeaderOrders);
    }

    /**
     * 新增团长订单
     * 
     * @param groupLeaderOrders 团长订单
     * @return 结果
     */
    @Override
    public int insertGroupLeaderOrders(GroupLeaderOrders groupLeaderOrders)
    {
        return groupLeaderOrdersMapper.insertGroupLeaderOrders(groupLeaderOrders);
    }

    /**
     * 修改团长订单
     * 
     * @param groupLeaderOrders 团长订单
     * @return 结果
     */
    @Override
    public int updateGroupLeaderOrders(GroupLeaderOrders groupLeaderOrders)
    {
        return groupLeaderOrdersMapper.updateGroupLeaderOrders(groupLeaderOrders);
    }

    /**
     * 批量删除团长订单
     * 
     * @param orderCodes 需要删除的团长订单主键
     * @return 结果
     */
    @Override
    public int deleteGroupLeaderOrdersByOrderCodes(String[] orderCodes)
    {
        return groupLeaderOrdersMapper.deleteGroupLeaderOrdersByOrderCodes(orderCodes);
    }

    /**
     * 删除团长订单信息
     * 
     * @param orderCode 团长订单主键
     * @return 结果
     */
    @Override
    public int deleteGroupLeaderOrdersByOrderCode(String orderCode)
    {
        return groupLeaderOrdersMapper.deleteGroupLeaderOrdersByOrderCode(orderCode);
    }
}
